package com.twentyOne.ClothingLand.service.impl;

import java.util.List;

import com.twentyOne.ClothingLand.dao.IColorDAO;
import com.twentyOne.ClothingLand.dao.impl.ColorDAO;
import com.twentyOne.ClothingLand.service.IColorService;
import com.twentyOne.ClothingLand.vo.Color;

public class ColorService implements IColorService {

	private IColorDAO colorDAO = new ColorDAO();
	
	@Override
	public void addColor(Color color) {
		
		this.colorDAO.addColor(color);
		
	}

	@Override
	public void deleteColor(Color color) {
		
		this.colorDAO.deleteColor(color);
		
	}

	@Override
	public void modifyColor(Color color) {
		
		this.colorDAO.modifyColor(color);
		
	}

	@Override
	public List<Color> searchAllColor() {

		return this.colorDAO.searchAllColor();
		
	}

}
